/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.netconsole.model;

import java.io.Serializable;

/**
 *
 * @author Romain
 */
public class Processus implements Serializable {
    private static final long serialVersionUID = 20151212;
    
    long pid;
    String nameProcess;
    float cpu;
    String mem;

    public Processus() {
    }

    public Processus(long pid, String nameProcess, float cpu, String mem) {
        this.pid = pid;
        this.nameProcess = nameProcess;
        this.cpu = cpu;
        this.mem = mem;
        
    }
    
    public long getPid() {
        return pid;
    }

    public void setPid(long pid) {
        this.pid = pid;
    }

    public String getNameProcess() {
        return nameProcess;
    }

    public void setNameProcess(String nameProcess) {
        this.nameProcess = nameProcess;
    }

    public float getCpu() {
        return cpu;
    }

    public void setCpu(float cpu) {
        this.cpu = cpu;
    }

    public String getMem() {
        return mem;
    }

    public void setMem(String mem) {
        this.mem = mem;
    }
    
    @Override
    public String toString() {
        return "ProcessusBean{" + "pid=" + pid + ", nameProcess=" + nameProcess + ", mem=" + mem + ", cpu=" + cpu +'}';
    }
    
}
